@import '~taro-ui/dist/style/components/float-layout.scss';

.giftCardRecharge {
  display: flex;
  flex-direction: column;

  .card-name {
    height: 40px;
    line-height: 40px;
    font-size: 28px;
    font-weight: bold;
    color: #333333;

    margin: 32px 0 24px 24px;
  }

  .card-logo {
    width: 702px;
    height: 395px;
    background: #d8d8d8;
    box-shadow: 0px 8px 16px 6px rgba(0, 0, 0, 0.16);
    border-radius: 16px;

    margin: 0 24px;
  }

  .card-denomination-name {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    line-height: 40px;

    margin: 32px 0 24px 24px;
  }

  .card-denomination-list {
    padding: 0 24px;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .wrap {
      margin-right: -24px;

      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;

      &::after {
        content: '';
        flex: auto;
      }
    }
  }

  .card-denomination {
    width: 214px;
    height: 150px;
    border-radius: 16px;
    border: 2px solid #e5e5e5;

    margin-bottom: 24px;
    margin-right: 24px;

    display: flex;
    flex-direction: column;

    &.selected {
      border: 2px solid #6d86c4;
    }

    .top,
    .bottom {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .top {
      margin-top: 28px;

      .price {
        height: 50px;
        font-size: 36px;
        font-weight: bold;
        color: #666666;
        line-height: 50px;
      }
    }

    .bottom {
      margin-top: 8px;

      .recharge-price {
        height: 33px;
        line-height: 33px;
        font-size: 24px;
        font-weight: 400;
        color: #666666;
      }
    }
  }

  .card-denomination-custom-wrap {
    display: flex;
    justify-content: center;

    margin-bottom: 24px;

    .card-denomination-custom {
      width: 702px;
      height: 88px;
      border-radius: 16px;
      border: 2px solid #e5e5e5;

      display: flex;
      align-items: center;

      .denomination-prefix {
        margin-left: 32px;

        height: 33px;
        line-height: 33px;
        font-size: 24px;
        font-weight: 400;
        color: #666666;
      }

      .denomination-unit {
        margin-left: 40px;

        height: 40px;
        line-height: 40px;
        font-size: 28px;
        font-weight: 400;
        color: #666666;
      }

      .denomination-input {
        margin-left: 17px;
        width: 470px;

        font-size: 28px;
        font-weight: 400;
        height: 40px;
        line-height: 40px;
      }

      .denomination-input-placeholder {
        font-size: 28px;
        font-weight: 400;
        color: #e5e5e5;
        line-height: 40px;
      }
    }
  }

  .card-instruction {
    margin-top: 8px;
    margin-bottom: 262px;

    display: flex;
    flex-direction: column;
    padding-left: 24px;

    .title {
      height: 40px;
      font-size: 28px;
      font-weight: 400;
      color: #999999;
      line-height: 40px;
    }

    .applicable-store {
      margin-top: 12px;
      display: flex;

      .left {
        height: 33px;
        font-size: 24px;
        font-weight: 400;
        color: #999999;
        line-height: 33px;
      }

      .right {
        height: 33px;
        font-size: 24px;
        font-weight: 400;
        line-height: 33px;
      }
    }

    .applicable-notice {
      margin-top: 12px;
      display: flex;

      height: 33px;
      font-size: 24px;
      font-weight: 400;
      color: #999999;
      line-height: 33px;

      .left {
        flex-shrink: 0;
      }

      .right {
        margin-right: 24px;
        word-break: break-all;
      }
    }
  }

  .go-to-buy {
    position: fixed;
    bottom: 0;

    width: 100%;

    background: #ffffff;
    box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.1);

    .wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;

      height: 126px;
      margin: 0 25px;

      .left {
        display: flex;
        align-items: center;

        .title {
          height: 40px;
          font-size: 28px;
          font-weight: 400;
          color: #333333;
          line-height: 40px;
        }

        .price {
          height: 56px;
          font-size: 40px;
          font-weight: 500;
          color: #333333;
          line-height: 56px;
          letter-spacing: 2px;
        }
      }

      .right {
        width: 240px;
        height: 76px;
        border-radius: 46px;

        display: flex;
        justify-content: center;
        align-items: center;

        .button-text {
          font-size: 28px;
          font-weight: bold;
          color: #ffffff;
        }
      }
    }
  }
}
